package com.lpit.mapper;

import com.lpit.pojo.Comment;
import com.lpit.dto.CommentsDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
* @author Administrator
* @description 针对表【comment(评论表)】的数据库操作Mapper
* @createDate 2023-06-27 14:43:33
* @Entity com.lpit.entity.Comment
*/
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    /**
     * 添加评论
     * @param commentsDto
     * @return Integer
     */
    Integer addComments(CommentsDto commentsDto);

    /**
     * 累计评论数
     */
    Long accumulated();
}




